package com.ys.service.storage;

import com.ys.entity.storage.TccOnlinePuton;
import com.ys.vo.R;

import java.util.List;
import java.util.Map;

//线上质检上架
public interface TccOnlinePutonService {

	/**
	 * 生成线上质检上架单
	 * @param assembleBid 商品组装单号
	 * @param spBm 母件编码
	 * @param putonNum 上架数量
	 * @param stockControlId 库存id
	 */
	R add(String assembleBid, String spBm, Integer putonNum, Long stockControlId) throws Exception;

	//质检上架
	R doQualityTesting(Map<String, Object> params) throws Exception ;

	//设置货位
	R setChw(Map<String, Object> params) throws Exception ;


	//查询sql
	TccOnlinePuton setSeachSqlByCommon(TccOnlinePuton cond) throws Exception;

	//获取母表信息
	Map<String, Object> getExtraParam(Long id) throws Exception;

	//获取子列表信息
	List<Map<String, Object>> getItemListByPid(Long id) throws Exception;


	//组装回退
	R back(Long id) throws Exception ;

	//质检上架单删除，根据商品组装单号
	R delByAssembleBid(String assembleBid) throws Exception ;

}
